package com.gem.day18;

import java.lang.annotation.Annotation;

public class Annotation01Process {
	public static void process(String obj){
		try {
			Class class1=Class.forName(obj);
			Annotation s=class1.getAnnotation(Annotation01.class);
			Annotation01 an=(Annotation01) s;
			System.out.println(an.color());
			/*Annotation[] annotations=class1.getAnnotations();
			for (Annotation annotation : annotations) {
				System.out.println(annotation);
			}*/
		} catch (ClassNotFoundException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
	}
}
